package designMode.compoundPattern;

/**
 * @author LIBOFEI
 * @ClassName DuckFactory
 * @description 创建一个工厂，此工厂创建没有装饰者的鸭子
 * @date 2020/7/1 14:54
 * @Version 1.0
 **/
public class DuckFactory extends AbstractDuckFactory{
    @Override
    public Quackable createGreenDuck() {
        return new GreenDuck();
    }

    @Override
    public Quackable createRedDuck() {
        return new RedDuck();
    }

    @Override
    public Quackable createDuckCall() {
        return new DuckCall();
    }

    @Override
    public Quackable createRubberDuck() {
        return new RubberDuck();
    }
}
